package com.exam.Service;

import com.exam.Dao.IUserDao;
import com.exam.Domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserService
 * @Description
 * @Author JY
 * @Date 2020/6/2 13:45
 **/
@Service
public class UserService implements IUserDao {
    @Autowired
    private IUserDao iUserDao;
    @Override
    public User findUserByName(String userName) {
        return iUserDao.findUserByName(userName);
    }

    @Override
    public Integer VerifyUsername(String userName) {
       return iUserDao.VerifyUsername(userName);
    }

    @Override
    public void insertRegister(User user) {
        iUserDao.insertRegister(user);
    }

    @Override
    public void updateMe(String userId, String name, String toValue) {
        iUserDao.updateMe(userId,name,toValue);
    }
}
